package com.cooper.service.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cooper.dao.core.EmailSettingDAO;
import com.cooper.entity.EmailServerSetting;

@Service
public class EmailSettingService {
	
	@Autowired
	private EmailSettingDAO emailSettingDao;
	
	public Long saveEntity(EmailServerSetting setting) throws Exception{
		return this.emailSettingDao.saveEntity(setting);
	}
	
	public EmailServerSetting getSetting(String emailType) throws Exception{
		return this.emailSettingDao.getSetting(emailType);
	}

}
